package com.example.demo.common;
public enum RCode {

    OK(10000,"操作成功"),
    ERROR(10001,"业务异常"),
    NOT_LOGIN(10002,"没有登录"),
    NOT_AUTH(10003,"没有权限");

    private final int code;
    private final String desc;


    RCode(int code, String desc){
        this.code = code;
        this.desc = desc;
    }

    public int getCode(){
        return code;
    }
    public String getDesc(){
        return desc;
    }


}
